<?php
//error_reporting(7);
set_time_limit(0);

//设置目录分隔符
define('DS', DIRECTORY_SEPARATOR); 

define('VANE_PATH', dirname(__FILE__).DS);

//加载vane核心
require_once('libs/vane.core.php');

$url = getRequestURL();
//非伪静态下默认跳转首页
if(!VANE_REWRITE && ($url ==='/' || $url ==='/index.php')){
	redirect('index.php?f=index&m=root');
	exit();
}

Router::getInstance()->go(VANE_REWRITE,$rule);